#ifndef VIDEOLABEL_H
#define VIDEOLABEL_H
#include <QLabel>
#include <QMouseEvent>

class VideoLabel:public QLabel
{
    Q_OBJECT
public:
    explicit VideoLabel(QWidget *parent = 0);
    int x = 0;
    int y = 0;
    bool isOutside = false;
protected:
    void mouseMoveEvent(QMouseEvent *ev);
    void enterEvent(QEvent *ev);
    void leaveEvent(QEvent *event);
signals:
    void mouseMoveSignal(int x,int y,bool isOutside);
};

#endif // VIDEOLABEL_H
